All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.Menu

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Menu

public class Menu
extends NativeObject
implements Coding
This class wraps the Objective-C class NSMenu.


Variable Index

 o MenuDidAddItemNotification
 o MenuDidChangeItemNotification
 o MenuDidRemoveItemNotification
 o MenuDidSendActionNotification
 o MenuWillSendActionNotification

Constructor Index

 o Menu()
This default constructor is equivalent to Objective-C's [[NSMenu alloc] init].
 o Menu(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Menu(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o Menu(String)
This constructor has the same effect as calling - initWithTitle: on a newly allocated object.

Method Index

 o addItem(MenuItem)
A wrapper for the - addItem: Objective-C instance method.
 o addItemWithTitleAndAction(String, Selector, String)
A wrapper for the - addItemWithTitle:action:keyEquivalent: Objective-C instance method.
 o attachedMenu()
A wrapper for the - attachedMenu Objective-C instance method.
 o autoenablesItems()
A wrapper for the - autoenablesItems Objective-C instance method.
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o helpRequested(Event)
A wrapper for the - helpRequested: Objective-C instance method.
 o indexOfItem(MenuItem)
A wrapper for the - indexOfItem: Objective-C instance method.
 o indexOfItemWithRepresentedObject(Object)
A wrapper for the - indexOfItemWithRepresentedObject: Objective-C instance method.
 o indexOfItemWithSubmenu(Menu)
A wrapper for the - indexOfItemWithSubmenu: Objective-C instance method.
 o indexOfItemWithTag(int)
A wrapper for the - indexOfItemWithTag: Objective-C instance method.
 o indexOfItemWithTarget(Object, Selector)
A wrapper for the - indexOfItemWithTarget:andAction: Objective-C instance method.
 o indexOfItemWithTitle(String)
A wrapper for the - indexOfItemWithTitle: Objective-C instance method.
 o insertItem(MenuItem, int)
A wrapper for the - insertItem:atIndex: Objective-C instance method.
 o insertItemWithTitleAndActionAtIndex(String, Selector, String, int)
A wrapper for the - insertItemWithTitle:action:keyEquivalent:atIndex: Objective-C instance method.
 o isAttached()
A wrapper for the - isAttached Objective-C instance method.
 o isTornOff()
A wrapper for the - isTornOff Objective-C instance method.
 o itemArray()
A wrapper for the - itemArray Objective-C instance method.
 o itemAtIndex(int)
A wrapper for the - itemAtIndex: Objective-C instance method.
 o itemChanged(MenuItem)
A wrapper for the - itemChanged: Objective-C instance method.
 o itemWithTag(int)
A wrapper for the - itemWithTag: Objective-C instance method.
 o itemWithTitle(String)
A wrapper for the - itemWithTitle: Objective-C instance method.
 o locationForSubmenu(Menu)
A wrapper for the - locationForSubmenu: Objective-C instance method.
 o menuChangedMessagesEnabled()
A wrapper for the - menuChangedMessagesEnabled Objective-C instance method.
 o menuRepresentation()
A wrapper for the - menuRepresentation Objective-C instance method.
 o numberOfItems()
A wrapper for the - numberOfItems Objective-C instance method.
 o performActionForItemAtIndex(int)
A wrapper for the - performActionForItemAtIndex: Objective-C instance method.
 o performKeyEquivalent(Event)
A wrapper for the - performKeyEquivalent: Objective-C instance method.
 o removeItem(MenuItem)
A wrapper for the - removeItem: Objective-C instance method.
 o removeItemAtIndex(int)
A wrapper for the - removeItemAtIndex: Objective-C instance method.
 o setAutoenablesItems(boolean)
A wrapper for the - setAutoenablesItems: Objective-C instance method.
 o setMenuChangedMessagesEnabled(boolean)
A wrapper for the - setMenuChangedMessagesEnabled: Objective-C instance method.
 o setMenuRepresentation(Object)
A wrapper for the - setMenuRepresentation: Objective-C instance method.
 o setSubmenuForItem(Menu, MenuItem)
A wrapper for the - setSubmenu:forItem: Objective-C instance method.
 o setSupermenu(Menu)
A wrapper for the - setSupermenu: Objective-C instance method.
 o setTitle(String)
A wrapper for the - setTitle: Objective-C instance method.
 o sizeToFit()
A wrapper for the - sizeToFit Objective-C instance method.
 o submenuAction(Object)
A wrapper for the - submenuAction: Objective-C instance method.
 o supermenu()
A wrapper for the - supermenu Objective-C instance method.
 o title()
A wrapper for the - title Objective-C instance method.
 o update()
A wrapper for the - update Objective-C instance method.

Variables

 o MenuWillSendActionNotification
 public static final String MenuWillSendActionNotification
 o MenuDidSendActionNotification
 public static final String MenuDidSendActionNotification
 o MenuDidAddItemNotification
 public static final String MenuDidAddItemNotification
 o MenuDidRemoveItemNotification
 public static final String MenuDidRemoveItemNotification
 o MenuDidChangeItemNotification
 public static final String MenuDidChangeItemNotification

Constructors

 o Menu
 protected Menu(boolean shouldAllocate,
                int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Menu
 public Menu()
This default constructor is equivalent to Objective-C's [[NSMenu alloc] init].

 o Menu
 public Menu(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o Menu
 public Menu(String aTitle)
This constructor has the same effect as calling - initWithTitle: on a newly allocated object.

Methods

 o setTitle
 public native void setTitle(String aString)
A wrapper for the - setTitle: Objective-C instance method.

 o title
 public native String title()
A wrapper for the - title Objective-C instance method.

 o setSupermenu
 public native void setSupermenu(Menu supermenu)
A wrapper for the - setSupermenu: Objective-C instance method.

 o supermenu
 public native Menu supermenu()
A wrapper for the - supermenu Objective-C instance method.

 o insertItem
 public native void insertItem(MenuItem newItem,
                               int index)
A wrapper for the - insertItem:atIndex: Objective-C instance method.

 o addItem
 public native void addItem(MenuItem newItem)
A wrapper for the - addItem: Objective-C instance method.

 o insertItemWithTitleAndActionAtIndex
 public native MenuItem insertItemWithTitleAndActionAtIndex(String aString,
                                                            Selector aSelector,
                                                            String charCode,
                                                            int index)
A wrapper for the - insertItemWithTitle:action:keyEquivalent:atIndex: Objective-C instance method.

 o addItemWithTitleAndAction
 public native MenuItem addItemWithTitleAndAction(String aString,
                                                  Selector aSelector,
                                                  String charCode)
A wrapper for the - addItemWithTitle:action:keyEquivalent: Objective-C instance method.

 o removeItemAtIndex
 public native void removeItemAtIndex(int index)
A wrapper for the - removeItemAtIndex: Objective-C instance method.

 o removeItem
 public native void removeItem(MenuItem item)
A wrapper for the - removeItem: Objective-C instance method.

 o setSubmenuForItem
 public native void setSubmenuForItem(Menu aMenu,
                                      MenuItem anItem)
A wrapper for the - setSubmenu:forItem: Objective-C instance method.

 o itemArray
 public native Array itemArray()
A wrapper for the - itemArray Objective-C instance method.

 o numberOfItems
 public native int numberOfItems()
A wrapper for the - numberOfItems Objective-C instance method.

 o indexOfItem
 public native int indexOfItem(MenuItem index)
A wrapper for the - indexOfItem: Objective-C instance method.

 o indexOfItemWithTitle
 public native int indexOfItemWithTitle(String aTitle)
A wrapper for the - indexOfItemWithTitle: Objective-C instance method.

 o indexOfItemWithTag
 public native int indexOfItemWithTag(int aTag)
A wrapper for the - indexOfItemWithTag: Objective-C instance method.

 o indexOfItemWithRepresentedObject
 public native int indexOfItemWithRepresentedObject(Object object)
A wrapper for the - indexOfItemWithRepresentedObject: Objective-C instance method.

 o indexOfItemWithSubmenu
 public native int indexOfItemWithSubmenu(Menu submenu)
A wrapper for the - indexOfItemWithSubmenu: Objective-C instance method.

 o indexOfItemWithTarget
 public native int indexOfItemWithTarget(Object target,
                                         Selector actionSelector)
A wrapper for the - indexOfItemWithTarget:andAction: Objective-C instance method.

 o itemAtIndex
 public native MenuItem itemAtIndex(int index)
A wrapper for the - itemAtIndex: Objective-C instance method.

 o itemWithTitle
 public native MenuItem itemWithTitle(String aTitle)
A wrapper for the - itemWithTitle: Objective-C instance method.

 o itemWithTag
 public native MenuItem itemWithTag(int tag)
A wrapper for the - itemWithTag: Objective-C instance method.

 o setAutoenablesItems
 public native void setAutoenablesItems(boolean flag)
A wrapper for the - setAutoenablesItems: Objective-C instance method.

 o autoenablesItems
 public native boolean autoenablesItems()
A wrapper for the - autoenablesItems Objective-C instance method.

 o performKeyEquivalent
 public native boolean performKeyEquivalent(Event theEvent)
A wrapper for the - performKeyEquivalent: Objective-C instance method.

 o update
 public native void update()
A wrapper for the - update Objective-C instance method.

 o setMenuChangedMessagesEnabled
 public native void setMenuChangedMessagesEnabled(boolean flag)
A wrapper for the - setMenuChangedMessagesEnabled: Objective-C instance method.

 o menuChangedMessagesEnabled
 public native boolean menuChangedMessagesEnabled()
A wrapper for the - menuChangedMessagesEnabled Objective-C instance method.

 o itemChanged
 public native void itemChanged(MenuItem item)
A wrapper for the - itemChanged: Objective-C instance method.

 o helpRequested
 public native void helpRequested(Event eventPtr)
A wrapper for the - helpRequested: Objective-C instance method.

 o setMenuRepresentation
 public native void setMenuRepresentation(Object menuRep)
A wrapper for the - setMenuRepresentation: Objective-C instance method.

 o menuRepresentation
 public native Object menuRepresentation()
A wrapper for the - menuRepresentation Objective-C instance method.

 o attachedMenu
 public native Menu attachedMenu()
A wrapper for the - attachedMenu Objective-C instance method.

 o isAttached
 public native boolean isAttached()
A wrapper for the - isAttached Objective-C instance method.

 o isTornOff
 public native boolean isTornOff()
A wrapper for the - isTornOff Objective-C instance method.

 o sizeToFit
 public native void sizeToFit()
A wrapper for the - sizeToFit Objective-C instance method.

 o locationForSubmenu
 public native Point locationForSubmenu(Menu aSubmenu)
A wrapper for the - locationForSubmenu: Objective-C instance method.

 o performActionForItemAtIndex
 public native void performActionForItemAtIndex(int index)
A wrapper for the - performActionForItemAtIndex: Objective-C instance method.

 o submenuAction
 public native void submenuAction(Object sender)
A wrapper for the - submenuAction: Objective-C instance method.

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index